<?php

namespace App\Models\Common\Adv;

use App\Trip\Traits\ModelDateTrait;
use Eloquent;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Carbon;

/**
 * App\Models\Common\Adv\Advertisement
 *
 * @property int         $id
 * @property string      $title 广告标题
 * @property int         $state 广告状态 1开启 0 关闭
 * @property string      $appid 跳转的app
 * @property string      $url   跳转的链接
 * @property string      $image 图片
 * @property Carbon|null $created_at
 * @property Carbon|null $updated_at
 * @method static Builder|Advertisement newModelQuery()
 * @method static Builder|Advertisement newQuery()
 * @method static Builder|Advertisement query()
 * @method static Builder|Advertisement whereAppid($value)
 * @method static Builder|Advertisement whereCreatedAt($value)
 * @method static Builder|Advertisement whereId($value)
 * @method static Builder|Advertisement whereImage($value)
 * @method static Builder|Advertisement whereState($value)
 * @method static Builder|Advertisement whereTitle($value)
 * @method static Builder|Advertisement whereUpdatedAt($value)
 * @method static Builder|Advertisement whereUrl($value)
 * @mixin Eloquent
 */
class Advertisement extends Model
{
    use HasFactory, ModelDateTrait;

    protected $table = 'advertisements';

    protected $fillable
        = [
            "title",
            "appid",
            "url",
            "image",
        ];
}
